using FrameworkDesign;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EquipmentSlotRoot :ItemViewController
{
    public UISlot Slot;
    void Start()
    {
        var model = this.GetModel<IConstModel>();
        var itemSyste = this.GetSystem<IItemSystme>();
        foreach(var slot in itemSyste.SlotGroupDic[model.GetEquipmentSlotGroupName].Slots)
        {
            var item = Instantiate(Slot,transform);
            item.InitUISlot(slot);
            item.gameObject.SetActive(true);
        }
      

    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
